﻿using System;
using System.IO;
using System.Collections;
namespace HtmlSnap
{
    public class FileRead
    {
        public ArrayList AL = new ArrayList();
        public void ReadData()
        {
            AL.Clear();
            FileStream fs = new FileStream("www.txt", FileMode.Open, FileAccess.Read);
            StreamReader sr = new StreamReader(fs);
            sr.BaseStream.Seek(0, SeekOrigin.Begin);
            string str = sr.ReadLine();
            while (!string.IsNullOrEmpty(str))
            {
                AL.Add(str);
                str = sr.ReadLine();
            }
            sr.Close();
            fs.Close();
        }      
    }
}